import type { PageParams, PageResult } from '@/types/global'
import { http } from '@/utils/http'
import type { SubjectItem, SubjectParams } from '@/types/subject'

/**
 * 获取课程列表
 * @param params
 * @returns
 */
export const getSubjectListApi = (params: SubjectParams) => {
  return http<PageResult<SubjectItem>>({
    method: 'GET',
    url: '/wechat/course/list',
    data: params,
  })
}
